package Exams.baiduTest;

import java.util.HashSet;

public class choose {
    private String s;
    public choose(String s) {
        this.s = s;
    }

    public static void main(String[] args) {
        HashSet<Object> hs = new HashSet<>();
        choose ws1 = new choose("111");
        choose ws2 = new choose("111");
        choose ws3 = new choose("222");
        String s1 = new String("111");
        String s2 = new String("111");
        hs.add(ws1);
        hs.add(s1);
        hs.add(ws2);
        hs.add(s2);
        hs.add(ws3);
        System.out.println(hs.size());
    }




    private static int test(int i) {
        try{
            i++;
            throw new Exception();
        }catch (Exception e){
            i++;
            System.out.println("catch_" + i);
            return i;
        }finally {
            i++;
            System.out.println("finaly" + i);
        }
    }

    private static void change(String s, char[] arr) {
        s = "beautiful";
        arr[5] = '*';
    }
}
